{extend name="_public/table_page" /}

{block name="table"}
<table class="layui-table" lay-even lay-skin="line" lay-size="sm">
    <thead>
    <tr>
        <th>id</th>
        <th>标签</th>
        <th>拥有文章数</th>
        <th>操作</th>
    </thead>
    <tbody>
    {volist name="list" id="vo"}
    <tr>
        <td>{$vo.id}</td>
        <td>{$vo.tag}</td>
        <td>{$vo.article_count}</td>
        <td>
            {if auth("$classuri/del")}
            <button class="layui-btn layui-btn-xs" href="javascript:;"
                    data-confirm="确定要删除吗！" data-post='{:url("$classuri/del")}' data-param='ids={$vo.id}'>
                删除
            </button>
            {/if}
        </td>
    </tr>
    {/volist}
    </tbody>
</table>
{$page|raw}
{/block}
